﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MenuHorizontal.ascx.cs" Inherits="WebApplication1.MenuHorizontal" %>
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="xdsMenuHorizontal">
        <HeaderTemplate>
            <ul>
            <li><a href="/Default.aspx">Accueil</a></li>
        </HeaderTemplate>
        <ItemTemplate>
        <li><a href='<%# "MainContent.aspx?idPage=" + XPath("@id")%>'><%#XPath("@nom")%></a></li>
        </ItemTemplate>
        <FooterTemplate>
             <li><a href="/ContactMe.aspx">Contactez-moi</a></li>
            </ul>
        </FooterTemplate>
    </asp:Repeater>    
    <asp:XmlDataSource ID="xdsMenuHorizontal" runat="server" DataFile="/Data/WebSite.xml" XPath="/langue/page"></asp:XmlDataSource>